import request from "./request";
// 获取商品列表
export const getBannerList = () => request.get("healthdata")
// 获取banners图
export const getBannerLists = (id: any) => request.get("healthdata", { params: { id } })

//登录
export const getLogin = (data: any) => request.get("user", data)
//获取购物车
interface Igetcar {
    userid: number
}
export const getCar = (data: Igetcar) => request.get("Carlist", { params: data })
//购物车删除订单
export const delCar = (id: string) => request.delete("Carlist/" + `${id}`)